package com.chalk.model;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author glq
 * @since 2020-12-24
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_ticket_order_item")
@ApiModel(value = "TicketOrderItem对象", description = "")
public class TicketOrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "门票订单详情id")
    @TableId(value = "toi_id", type = IdType.AUTO)
    @JsonProperty("toiId")
    private Integer toiId;

    @ApiModelProperty(value = "门票id")
    @JsonProperty("ticketId")
    private Integer ticketId;

    @ApiModelProperty(value = "门票订单id")
    @JsonProperty("ticketOrderId")
    private Integer ticketOrderId;

    @ApiModelProperty(value = "门票名称")
    @JsonProperty("ticketName")
    private String ticketName;
    @ApiModelProperty(value = "门票价格")
    @JsonProperty("ticketPrice")
    private BigDecimal ticketPrice;

    @ApiModelProperty(value = "门票数量")
    @JsonProperty("ticketNum")
    private Integer ticketNum;

    @ApiModelProperty(value = "用户id")
    @JsonProperty("memberId")
    private String memberId;

    @ApiModelProperty(value = "创建时间")
    @JsonProperty("createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "0未删除 1已删除")
    @JsonProperty("isDelete")
    private Integer isDelete;

    @ApiModelProperty(value = "更新时间")
    @JsonProperty("updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "场馆id")
    @JsonProperty("venueId")
    private Integer venueId;


}
